{{useCss "/app-pages/css/default.scss","*"}}
<div class="blocktop"></div>
<!-- 直接购买 -->
<div class="blockwrap {{$Cache.top.private}}">
    <div class="box">
        <div class="boxtitle">
            购买确认
        </div>
        <div class="infobox">
            {{#if loginer}}
            <p>已添加商品，是否到购物车中结算？</p>
            <div class="btnbox">
                <button class="btn" event-click="{{'$Event.top.goto_cart'}}">直接下单</button>
                <button class="btn" event-click="{{'$Event.top.stay'}}">继续挑选</button>
            </div>
            {{#else}}
            <p>购买商品前请先<href to="/sign_in.html?id=1{{$Cache.cb_url}}" style="color:blue;cursor:pointer">登陆</href>或者<a style="color:blue;cursor:pointer" event-click="{{'$Event.top.stay'}}">留在此页面</a>
            </p>
            {{/if}}
        </div>
    </div>
</div>
<div class="top_bar">
    <div class="topbar">
        <div class="bar">
            <div class="bar-left">
                <href class="storetitle" to="/main.html">
                    {{bus_info.info.title}}
                </href>
                <!-- {{#if bus_info.info.qq}}
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={{bus_info.info.qq}}&site=qq&menu=yes">
                    <img class="chat" border="0" bind-src="http://wpa.qq.com/pa?p=2:{{bus_info.info.qq||'123456'}}:41" alt="点击这里给我发消息" title="点击这里给我发消息" />
                </a>
                {{/if}} -->
            </div>
            <div class="bar-right">
                <div class="searchbox {{$Cache.search_focus&&'focus'}}" event-click="{{'$Event.set_search_focus'}}">
                    <input type="text" class="keyset" event-blur="{{'$Event.set_search_blur'}}" ele-focus="{{'$Boolean:'+$Cache.search_focus}}" placeholder="搜索" event-enter="{{'$Event.open_search'}}" bind-value="{{$Cache.search_text}}" bind-input="{{'$Cache.search_text'}}" />
                    {{#if $Cache.search_focus}}
                    <href class="icon-search" to="/searchset.html?q={{$Cache.search_text}}"></href>
                    {{#else}}
                    <a class="icon-search"></a>
                    {{/if}}
                </div>

                {{#if loginer}}
                    <a class="bar-button {{$Cache.is_collect_current_bus&&'icon-star'||'icon-star-empty'}}" title="{{$Cache.is_collect_current_bus&&'已收藏'||'点击收藏'}}" event-click="{{'$Event.user_collect_bus'}}"></a>
                    <href to="/cart.html" class="bar-button">购物车</href>
                    <href id="loginer_info" class="bar-button" to="/user/order.html">{{loginer.info.name}}</href>
                    <a class="bar-button" event-click="{{'$Event.top.user_login_out'}}" id="login_out" href="#">注销</a>
                {{#else}}
                    {{#if C}}
                    {{#else}}
                    <href id="sign_in_btn" to="/sign_in.html?id=1{{$Cache.cb_url}}" class="bar-button border">登陆</href>
                    <href id="sign_up_btn" to="/sign_in.html?id=2{{$Cache.cb_url}}" class="bar-button">注册</href>
                    {{/if}}
                {{/if}}
            </div>
        </div>
    </div>
</div>

<!-- 二维码 -->
{{#if bus_info.config.qrcode_url}}
    <div class="bus_qrcode" bind-style="background-color:{{bus_info.config.theme.first_color||'#FFF'}};color:{{bus_info.config.theme.font_color||'#000'}};" event-click="{{'$Event.top.show_bus_qrcode'}}">
        {{#if $Cache.top.is_show_bus_qrcode}}
        <span>✖</span>
        {{#else}}
        <span class="icon-qrcode"></span>
        {{/if}}
    </div>
{{/if}}
{{#if $Cache.top.is_show_bus_qrcode}}
<jqrcode class="qrcodeimg" text="{{bus_info.url+'?rcid='+loginer._id}}"></jqrcode>
{{/if}}

<!-- 背景 -->
{{#if bus_info.config.is_use_bg_img}} 
    {{#if bus_info.config.is_bg_img_alpha}}
    <div class="themeimgblock" style="position: fixed;width: 100%;height:100%;top:0;left:0;background-color: rgba(255,255,255,0.6);z-index: -1;"></div>
    {{/if}}
    <img style="display:block;position: fixed;width: 100%;height: 100%;z-index: -2;top:0;left: 0;" bind-src="{{bus_info.config.using_bg_img}}{{#if bus_info.config.is_bg_img_blur}}?imageMogr2/blur/10x10{{/if}}">
{{/if}}
<!-- 导航 -->
<div class="nav_bar {{$Cache.top.scroll&&'focus'}}">
    <div class="top1">
        <div class="nav-bar">
            <div class="nav-box">
                <href to="/main.html" class="nav-button first">首页</href>
                <href to="/goods_list.html?id=3" class="nav-button ">商品列表</href>
                <href to="/storeinfo.html" class="nav-button ">关于我们</href>
                <href to="/help.html" class="nav-button ">省钱攻略</href>
            </div>
        </div>
    </div>
</div>

